package com.jiaeda.shiromaster.service.imp;

import com.jiaeda.shiromaster.entity.SysUserRole;
import com.jiaeda.shiromaster.mapper.SysUserRoleMapper;
import com.jiaeda.shiromaster.service.SysUserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by chengchaopeng on 2018/6/27.
 */
@Service
public class SysUserRoleServiceImp implements SysUserRoleService {
    @Autowired
    private SysUserRoleMapper sysUserRoleMapper;


    @Override
    public List<SysUserRole> findByUserId(Integer userId) {
        return sysUserRoleMapper.findByUserId(userId);
    }
}
